#include <iostream>
#include "Coornidate.h"

using namespace std;
int main()
{
    Coornidate* p = new Coornidate[3];
    Coornidate coor[3];
    coor[0].X = 11;
    coor[0].Y = 11;

    p->X = 10;
    p[0].Y = 11;
    p++;
    p->X = 20;
    p->Y = 21;
//    p[1].X = 3;
//    p[1].Y = 3;
    for(int i=0;i<3;i++)
    {
        cout<<p[i].X<<" : "<<p[i].Y<<" "<<"\n";
        p--;
    }
    p++;
    delete [] p;
}